package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * @Author：贾琦磊
 * @Date：2018/7/11
 * @Description：相关收藏记录
 */
@Entity(value="SundayCollection", noClassnameStored=true)
public class SundayCollection extends BaseMongoEntity {
    private Long memberId;//用户id

    private Integer type;//收藏的类型  自定义。1-商品,2-用户(收藏用户即关注)
    private Long otherId;//收藏的东西id

    public SundayCollection() {
    }

    public SundayCollection(Long memberId, Integer type, Long otherId) {
        this.memberId = memberId;
        this.type = type;
        this.otherId = otherId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getOtherId() {
        return otherId;
    }

    public void setOtherId(Long otherId) {
        this.otherId = otherId;
    }
}

